<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
</head>
<body>
	<div class="content-wrapper" th:fragment="fieldset">
		<h3>添加fieldset</h3>
		<div class="panel panel-default">
			<div class="panel-heading"></div>
			<div class="panel-body">
				<form class="form-horizontal" >
					<input type="hidden" id="profileId"
						th:value="${profiles.profileId}" />
					<fieldset>
						<div class="form-group">
							<label for="input-id-1" class="col-sm-2 control-label">模板名称：</label>
							<div class="col-sm-5">
								<p class="form-control-static" th:text="${profiles.profileName}"></p>
							</div>
						</div>
					</fieldset>
					<fieldset>
						<div class="form-group">
							<label for="input-id-1" class="col-sm-2 control-label">模板说明：</label>
							<div class="col-sm-5">
								<p class="form-control-static" th:text="${profiles.profileNote}"></p>
							</div>
						</div>
					</fieldset>
					<fieldset>
						<div class="form-group">
							<label for="input-id-1" class="col-sm-2 control-label">fieldset列表：：</label>
							<div class="col-sm-5">
								<button type="button" id="addBtn" class="btn btn-default">添加</button>
								<!-- START panel-->
								<div class="panel panel-default">
									<div class="panel-body">
										<div class="table-responsive">
											<table class="table table-striped">
												<thead>
													<tr>
														<th class="text-center">名称</th>
														<th class="text-center">操作</th>
													</tr>
												</thead>
												<tbody id="fieldsetListTable" class="text-center">

												</tbody>
											</table>
										</div>
									</div>
								</div>
								<!-- END panel-->
							</div>
						</div>
					</fieldset>
					<fieldset>
						<div class="form-group">
							<label for="input-id-1" class="col-sm-2 control-label"></label>
							<div class="col-sm-5" style="text-align: right;">
							   <button type="button" id="returnBtn" class="btn btn-default">返回</button>
								<button type="button" id="saveBtn" class="btn btn-primary">保存</button>
							</div>
						</div>
					</fieldset>
				</form>
			</div>
		</div>
	</div>

	<div th:fragment="fieldset_dialog">
		<div id="dialogMode" tabindex="-1" role="dialog"
			aria-labelledby="myModalLabelLarge" aria-hidden="true"
			class="modal fade">
			<div class="modal-dialog ">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" data-dismiss="modal" aria-label="Close"
							class="close">
							<span aria-hidden="true">&times;</span>
						</button>
						<h4 id="modelTitle" class="modal-title">新增fieldset</h4>
					</div>
					<div class="modal-body">
						<form id="addFieldsetForm">
							<div class="form-group">
								<label class="control-label">*名称 </label> <input type="text"
									id="fieldsetName" name="fieldsetName" required="" minlength="2"
									class="form-control" />
							</div>
						</form>
					</div>
					<div class="modal-footer">
						<button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
						<button type="button" id="submitBtn" class="btn btn-primary">保存</button>
					</div>
				</div>
			</div>
		</div>

	</div>

	<div th:fragment="fieldset_js">

		<script th:src="@{/business/manager/inputProfile/fieldset.js}"></script>

	</div>

</body>
</html>